Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PM-14245] Remove policy definitions feature flag #5095

Merged

Conversation

eliykat
Copy link
Member

@eliykat eliykat commented Nov 28, 2024

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-14245

📔 Objective

Remove the Pm13322AddPolicyDefinitions feature flag.

  • delete PolicyService.SaveAsync and private methods 🥳
  • update all callers to use the new command
  • the old unit tests for the public api didn't make sense anymore - there wasn't really anything left there for them to test - so I replaced them with integration tests

Auth: the changes to your code is just to use the new interface.

Client PR: bitwarden/clients#12172

📸 Screenshots

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link
Contributor

LaunchDarkly flag references

❌ 1 flag removed

Name Key Aliases found Info
Add Policy Definitions for save action pm-13322-add-policy-definitions ✅ all references removed

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 79.03226% with 13 lines in your changes missing coverage. Please review.

Project coverage is 43.14%. Comparing base (c9aa61b) to head (0dc97aa).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../AdminConsole/Models/Request/PolicyRequestModel.cs 0.00% 7 Missing ⚠️
...Api/AdminConsole/Controllers/PoliciesController.cs 37.50% 5 Missing ⚠️
.../Public/Models/Request/PolicyUpdateRequestModel.cs 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5095      +/-   ##
==========================================
- Coverage   43.16%   43.14%   -0.02%     
==========================================
  Files        1424     1424              
  Lines       65110    64919     -191     
  Branches     5968     5936      -32     
==========================================
- Hits        28102    28010      -92     
+ Misses      35755    35666      -89     
+ Partials     1253     1243      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Nov 28, 2024

Logo
Checkmarx One – Scan Summary & Details8450874a-603a-443e-bfb2-27cf6e8e29f9

Fixed Issues

Severity Issue Source File / Package
MEDIUM CSRF /src/Api/AdminConsole/Public/Controllers/OrganizationController.cs: 42
MEDIUM CSRF /src/Api/AdminConsole/Public/Controllers/OrganizationController.cs: 42

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed but asked for a second set of eyes because I'm new and there were moderate removals to the PolicyService @JaredSnider-Bitwarden should be taking a look as well.

Copy link
Contributor

@JaredSnider-Bitwarden JaredSnider-Bitwarden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auth files look good! Thank you!

@eliykat eliykat merged commit 44b6879 into main Dec 4, 2024
52 checks passed
@eliykat eliykat deleted the ac/pm-14245/remove-pm-13322-add-policy-definitions-from-codebase branch December 4, 2024 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants